import { Router, Request, Response } from "express";
import express = require("express");
import ProjectController from "./project.controller";

const router: Router = express.Router();
const controller = new ProjectController();
//获取项目
router.get("/api/projects/getPageList", (req: Request, res: Response, next) => {
  const { body, query, params } = req;
  console.log("projectRouter-getPageList", body, query, params);
  controller.getList(req, res);
});
//添加项目
router.post("/api/projects/add", (req: Request, res: Response, next) => {
  const { body, query, params } = req;
  console.log("projectRouter-getPageList", body, query, params);
  return;
  controller.getList(req, res);
});
export default router;
